import { memo } from 'react'
import WyfModal from '@/components/CRUD-Cpns/WyfModal'
import { Button } from 'antd'

const User = memo(() => {
	const [modal] = WyfModal.useModal()

	return (
		<>
			<Button
				type="primary"
				onClick={() => {
					modal.setModal(true)
				}}
			>
				Open Modal
			</Button>
			<WyfModal modal={modal} onOk={() => modal.setModal(false)} />
		</>
	)
})

export default User
